
var app = angular.module('duo', ["ui.router"]);


app.config(function($stateProvider) {
  $stateProvider
  .state('main', {
    url: '/',
    templateUrl: 'main.html'
  })
  .state('product', {
    url: '/product',
    templateUrl: 'product.html'
  })
  .state('userMessage', {
    url: '/userMessage/:userId',
    templateUrl: 'userMessage.html'
  });
})
// .config(['$httpProvider', function($httpProvider) {
//   $httpProvider.defaults.withCredentials = true;
// }])


app.controller('main', function($scope, $rootScope ,$state, $http) {

})













